package com.buybuyyi.stylistcrm.user.dao;

import com.buybuyyi.stylistcrm.user.mapper.UserProfileMapper;
import com.buybuyyi.stylistcrm.user.po.UserProfile;
import stylistcrm.core.services.order.exception.BizException;
import stylistcrm.core.services.security.dto.UserDto;
import stylistcrm.core.services.user.requisition.Requisition;
import stylistcrm.core.services.user.requisition.RequisitionDto;

/**
 * Created by yanwc on 2016/10/9.
 * 会员审核Dao
 */
public interface AuditingDao {

    /**
     * 是否可以审核
     * @param requisition
     * @return
     */
    boolean isAudit(RequisitionDto requisition);

    /**
     * 审核
     * @param requisition 申请单
     * @return null 审核失败 not null 审核成功
     */
    boolean pass(RequisitionDto requisition, UserDto userDto) throws BizException;

}
